{foreach $leftMenu as $menu}
{if is_array($menu['list'])}
<div class="off" style="cursor:pointer;">{$menu['title']}</div>
    <ul>
{foreach $menu['list'] as $name => $url}
        <li><a href="{$url}"  target="main"><i class="iconfont">&#xf0da;</i> {$name}</a> </li>
{/foreach}
    </ul>
{/if}
{/foreach}
<script type="text/javascript"> 
$("#menu ul li").click(function(){$("#menu ul li").removeClass();$(this).attr('class','focus');})
$("#menu").find('ul').hide();
$("#menu").find('ul').first().show();   
$("#menu").find('div').first().attr('class','on');
$("#menu div").click(function(){
   var a = $(this).attr('class');
   if(a == 'on'){$(this).attr('class','off');$(this).next().hide('fast'); }
   if(a == 'off'){$(this).attr('class','on');$(this).next().show('fast'); }
});
</script>